package com.woniuxy.micropermissionserver.permissionmanage.service;

import com.woniuxy.microcommonserver.bean.permission_hcz.Admin;
import com.woniuxy.microcommonserver.bean.permission_hcz.Permission;
import com.woniuxy.micropermissionserver.vo.RouterVo;

import java.util.List;

public interface IPermissionService {

    void savePermission(Permission permission);

    List<String> findPermsByAdmin(Admin admin);

    List<Permission> findPermissionTreeByAdminId(Integer adminId);

    List<RouterVo> buildMenus(List<Permission> permissions);
}
